import request from '@/utils/request'

let videoManageApi = {

  // 获取视频列表
  getList(query) {
    return request({
      url: '/index/resources/list',
      method: 'get',
      params:query
    })
  },
  // 新增
  add(data) {
    return request({
      url: '/index/resources',
      method: 'post',
      data: data
    })
  },
   // 修改
   edit(data) {
    return request({
      url: '/index/resources',
      method: 'put',
      data: data
    })
  },
  // 删除
  del(ids) {
    return request({
      url: `/index/resources/${ids}`,
      method: 'delete'
    })
  },
   // 获取详情
   getDetail(ids) {
    return request({
      url: `/index/resources/${ids}`,
      method: 'get'
    })
  },

   // 获取视频列表  WEB
   getListweb(query) {
    return request({
      url: '/website/index/resources/list',
      method: 'get',
      params:query
    })
  },
  // 获取详情 WEB
  getDetailweb(ids) {
    return request({
      url: `/website/index/resources/${ids}`,
      method: 'get'
    })
  },

}
export default videoManageApi

